From: Ray Strode Date: Tue, 15 Mar 2011 19:22:20 +0000 (-0400) Subject: polkit: drop gdmuser naming workaround X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8648 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=1314559833a7fa18b033abd90265eb587f870b57;p=gnome-shell.git polkit: drop gdmuser naming workaround The polkit authentication dialog contains logic for falling back to dispalying a user's username if that user has no real name. This logic is no longer needed because gdmuser does it internally now. https://bugzilla.gnome.org/show_bug.cgi?id=644765 --- diff --git a/js/ui/polkitAuthenticationAgent.js b/js/ui/polkitAuthenticationAgent.js index 8834c0e43..22535b785 100644 --- a/js/ui/polkitAuthenticationAgent.js +++ b/js/ui/polkitAuthenticationAgent.js @@ -108,10 +108,6 @@ AuthenticationDialog.prototype = { userRealName = _('Administrator'); } - // Work around Gdm.UserManager returning an empty string for the real name - if (userRealName.length == 0) - userRealName = userName; - if (userIsRoot) { let userLabel = new St.Label(({ style_class: 'polkit-dialog-user-root-label', text: userRealName }));